import request from '@/utils/request'

// 查询试卷管理列表
export function listPaperManage(query) {
  return request({
    url: '/examManage/paperManage/list',
    method: 'get',
    params: query
  })
}

// 查询试卷管理详细
export function getPaperManage(paperId) {
  return request({
    url: '/examManage/paperManage/' + paperId,
    method: 'get'
  })
}

// 新增试卷管理
export function addPaperManage(data) {
  return request({
    url: '/examManage/paperManage',
    method: 'post',
    data: data
  })
}

// 修改试卷管理
export function updatePaperManage(data) {
  return request({
    url: '/examManage/paperManage',
    method: 'put',
    data: data
  })
}

// 删除试卷管理
export function delPaperManage(paperId) {
  return request({
    url: '/examManage/paperManage/' + paperId,
    method: 'delete'
  })
}
// 添加考题到试卷
export function addQuestionIntoPaper(data) {
  return request({
    url: '/examManage/paperManage/addQuestionIntoPaper',
    data,
    method: 'post'
  })
}
// 添加考题到试卷
export function batchRemovePaperQuestion(data) {
  return request({
    url: '/examManage/paperManage/batchRemovePaperQuestion',
    data,
    method: 'post'
  })
}